<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    {if request()->get('parent_id')}
    <div class="form-group">
        <label for="c-parent_id" class="control-label col-xs-12 col-sm-2">{:__('Parent_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parent_id" data-rule="required" data-source="parent/index" class="form-control selectpage" name="row[parent_id]" type="text" value="{$row.parent_id}" readonly>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label for="c-code" class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]" type="text" value="{$row.code}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}" readonly>
        </div>
    </div>

    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', ['0'=>__('RentNew'),'1'=>__('RentRenew'),'2'=>__('RentSublet')],$row['type'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-start_time" class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time|datetime=###,'Y-m-d'}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label for="c-end_time" class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time|datetime=###,'Y-m-d'}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label for="c-verify" class="control-label col-xs-12 col-sm-2">{:__('VerifyStatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[verify]', ['0'=>__('VerifyWait'),'1'=>__('VerifyPass'),'2'=>__('VerifyRefuse')],$row['verify'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" name="row[remarks]" type="text"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-flow_instance_id" class="control-label col-xs-12 col-sm-2">{:__('FlowInstanceId')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[flow_instance_id]" data-rule="required" class="form-control selectpicker show-tick">
                {foreach name="flowlist" item="vo"}
               <option value="{$vo.id}">{$vo.title} </option>
               {/foreach} 
           </select>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="button" class="btn btn-default btn-embossed" onClick="closeLayerWin(this)">{:__('Close')}</button>
        </div>
    </div>
</form>